package com.lupan.tomcatStudy.springCode.customTag;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/6/8 15:28
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("springCode/customTag/spring-context.xml");
        User user = (User)context.getBean("user");
        System.out.println("userName="+user.getUserName()+" and email="+user.getEmail());
    }
}
